<!--
title: 日志管理
description: 
published: true
date: 2025-06-21T10:34:12.080Z
tags: 
editor: ckeditor
dateCreated: 2025-06-19T07:01:33.854Z
-->

<h1>打印日志</h1>
<p>&nbsp;</p>
<pre><code class="language-plaintext"># 打印日志
log_print(log, level)</code></pre>
<p>&nbsp;</p>
<ul>
  <li>参数说明<br>log：日志内容，值为可序列化对象，如，python基本类型、list、set等<br>level：日志等级，值为："INFO"、"ERROR"、"DEBUG"、"WARING"、"SYSTEM"</li>
</ul>
<p>&nbsp;</p>
<h2>简单示例</h2>
<p>&nbsp;</p>
<pre><code class="language-plaintext"># 导入SDK 
global log_print 

# 打印信息
log_print("Hello Word！", "INFO")

# 打印错误
log_print("Hello Word！", "ERROR")

# 调试信息
log_print("Hello Word！", "DEBUG")

# 打印告警
log_print("Hello Word！", "WARING")

# 系统日志
log_print("Hello Word！", "SYSTEM")</code></pre>
<p>&nbsp;</p>
<ul>
  <li>查询项目日志</li>
</ul>
<figure class="image"><img src="/sdk/wx20250615-150954@2x.png"></figure>
<p>&nbsp;</p>
<p>&nbsp;</p>
